const mongoose = require('mongoose');

const scenicSpotSchema = new mongoose.Schema({
  scenicSpotName: String,
  typeArr: String,
  scenicSpotDesc: String,
  scenicSpotPrice: String,
  startTime: String,
  endTime: String,
  imgSrc: Array,
  createTime: {
    type: Date,
    default: Date.now
  }
})

const scenicSpotModel = mongoose.model('scenicSpot',scenicSpotSchema)

module.exports = scenicSpotModel